Use xml dom and XPath to create online tests for multiple choice questions
Author:Enrico metrics ar SamuelSource: http://www.codeproject.com/aspnet/xmlquiz.aspIntroduction
The idea of creating online tests comes from an accidental opportunity
XPath can quickly navigate to a node or attribute in the XML. The XPath syntax is simple, but powerful enough, and it is also the basic knowledge of using XSLT.Sample xml:
1234567891011121314151617181920212223242526272829
xmlversion=
There are several methods of locating the elements in Selenium2, Commonly used are Id,xpath, cssselector XPath Introduction: XPath is a selector? XPath is validated with Firepath in Firefox? XPath common symbol description
/represents an
Document directory
General functions
Function for testing sequence capacity
Equals, union, intersection and except T
Aggregate functions
Generation sequence Functions
Access Functions
Name
Description
FN: node-Name (node)
Regular match: RulesSingle-character. : All characters except line break[]: [AOE] [a-w] matches any one of the characters in the set\d: Number [0-9]\d: Non-digital\w: Numbers, letters, underscores, Chinese\w: Non-\w\s: all whitespace characters\s:
recently learned to use the Scrapy framework to write a reptile, simple crawler is to crawl from the Web page, parse the page, and then data storage and analysis, from the Web page parsing to the data conversion storage. The analytical techniques
1, XPath operation XML, the bottom part of the code is commented, but the full function, the removal of comments is normal use (there are write naming and other conflicts, so commented)Overall: Full read XML, XML additions and deletions, the
This article explores the built-in XML support in SQL Server 2005. Describes how this support integrates with client programming supported by the. NET framework V2.0 and native code, such as OLE DB and SQLXML.
First, Introduction
Extensible Markup
1. XML Introduction
XML (Extensible Markup Language) is a W3C standard used for easy interaction between Web applications and servers and data storage and use.
Data encoded using XML standards has the meaning and structure that can be easily
1. XML IntroductionXML (Extensible Markup Language) is a W3C standard used for easy interaction between Web applications and servers and data storage and use.Data encoded using XML standards has the meaning and structure that can be easily
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.